<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:xsltu="http://xsltunit.org/0/" 
  xmlns:cu="http://apache.org/cocoon/counit"
  version="1.0">
  <xsl:import href="xsltunit_v0.2.xsl"/>
  
  <!-- 
    Input for this stylesheet is the expected and received output.
    These will be compared with xsltunit.
    
    Authors: Jan Willem Boer <janwillem@jwenr.nl>
  -->
  
  <xsl:template match="cu:testcase">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:call-template name="xsltu:assertEqual">
        <xsl:with-param name="id" select="@id"/>
        <xsl:with-param name="nodes1" select="cu:expect/node()"/>
        <xsl:with-param name="nodes2" select="cu:output/node()"/>
      </xsl:call-template>
    </xsl:copy>
  </xsl:template>
  
  <!-- copy everything else -->
  <xsl:template match="node()|@*">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates select="node()"/>
    </xsl:copy>
  </xsl:template>
  
</xsl:stylesheet>
